package cn.gov.pbc.dream.dao;

import cn.gov.pbc.dream.pojo.repository.BankFinancingProductInfoDo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface BankFinancingProductInfoDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BankFinancingProductInfoDo record);

    int insertSelective(BankFinancingProductInfoDo record);

    BankFinancingProductInfoDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BankFinancingProductInfoDo record);

    int updateByPrimaryKey(BankFinancingProductInfoDo record);

    int deleteByReportOrgCodeAndReportTime(@Param("reportOrgCode") String reportOrgCode,
                                           @Param("reportTime") Date reportTime);

    BankFinancingProductInfoDo selectByCode(String code);

    List<BankFinancingProductInfoDo> selectByParam();

    int selectCountByOrg(Integer orgId);
}